package com.heatingcharge.service.sys;

import com.heatingcharge.entity.sys.SysUserBuilding;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 收费人区域管理表 服务类
 * </p>
 *
 * @author devin.jiang
 * @since 2020-01-12
 */
public interface ISysUserBuildingService extends IService<SysUserBuilding> {

    List<Integer> getBuildingIdsByUserId(SysUserBuilding sysUserBuilding);

    Integer deleteByUserIdAndHeatYearId(Integer userId,Integer heatYearId);

    Integer saveUserBuildings(Integer heatYearId, Integer userId, List<Integer> buildingIds);
}
